package IO输入输出流.字符流;
//字符流写文件

import java.io.FileWriter;
import java.io.IOException;

public class text2 {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("2.txt");
        String str="无言独上西楼";
        fileWriter.write(str);
        fileWriter.close();


    }
}
